export default {
    formatDateTime(date) {
        const time = new Date(Date.parse(date));
        time.setTime(time.setHours(time.getHours() + 8));
        const Y = time.getFullYear() + ".";
        const M = this.addZero(time.getMonth() + 1) + ".";
        const D = this.addZero(time.getDate()) + " ";
        const h = this.addZero(time.getHours()) + ":";
        const m = this.addZero(time.getMinutes()) + ":";
        const s = this.addZero(time.getSeconds());
        return Y + M + D + h + m+s;
    }
}